﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BroRPG.GameComponents
{
    public class Tuile : Sprite
    {
        protected int _layer;
        public int Layer
        {
            get { return _layer; }
            set { _layer = value; }
        }

        protected float _lightPropagation;
        public float LightPropagation
        {
            get { return _lightPropagation; }
            set { _lightPropagation = value; }
        }

        public Tuile(String spritesheet,String texture, int layer) : base(spritesheet,texture)
        {
            this._layer = layer;

            if (layer > 0)
                _lightPropagation = 0;
            else
                _lightPropagation = 1;

            if (layer == 2)
                Alpha = 0.2f;
        }
    }
}
